// ----------------------------------统一封装项目api请求接口层-------------------------------------------
// 1.引入配置文件中的getData postData
import {
    getData,
    postData
} from "./config.js"

// 2.-----------------------封装管理员登录方法并导出-----------
export const reqLogin = params => postData('/api/userlogin', params)

// 3.------------------------menu--------------------------
// 获取菜单类表数据
export const reqGetMenu = params => getData('/api/menulist', params)
// 添加菜单类表数据
export const reqAddMenu = params => postData('/api/menuadd', params)
// 修改菜单类表数据
export const reqEditMenu = params => postData('/api/menuedit', params)
// 删除菜单类表数据
export const reqDeleteMenu = params => postData('/api/menudelete', params)